<?php

namespace App\Kuafu\Common\Controller\Internal;

use App\Kuafu\Base\Controller\BaseController;
use App\Kuafu\Common\Service\CommonService;
use Illuminate\Http\Request;

class AreaController extends BaseController
{

    public function getAreaCodeByArea(Request $request)
    {
        $area = $request->get('area', '');
        $areaArr = explode('-', $area);
        return $this->success(CommonService::getAreaCodeByArea($areaArr));
    }

}
